<%@page import="util.Constants" %>

<div style="width: 45%; float: left; margin-left: 30px;">
    <span class="label">Project</span>
    <select type="select" class="value" id="cbxProjectId" name="cbxProjectId">
        <%
            controller.defectLogController.loadProjectData(out);
        %>
    </select><div class="clear"></div>
    
    <span class="label">Title</span>
    <input type="text" id="txtTitle" name="txtTitle" size="40"/><div class="clear"></div>
    
    <span class="label">Description</span>
    <textarea wrap="OFF" name="txtDescription" style="width: 270px;"></textarea><div class="clear"></div>
    
    <span class="label">Created Date</span>
    <select name="txtCreate_date" style="width: 50px;"><% util.StringDate.insertDateBoxValue(out);%></select>
    <select name="txtCreate_month" style="width: 50px;"><% util.StringDate.insertMonthBoxValue(out);%></select>
    <select name="txtCreate_year" style="width: 100px;"><% util.StringDate.insertYearBoxValue(out); %></select>
    <div class="clear"></div>
    
    <span class="label">Status</span>
    <select size="1" name="cbxStatus">
        <%
            controller.defectLogController.loadStatusData(out);
        %>
    </select><div class="clear"></div>
    
    <span class="label">Product</span>
    <input type="text" name="txtProduct" size="40"/><div class="clear"></div>
    
    <span class="label">Severity</span>
    <select size="1" name="cbxSeverity">
        <%
            controller.defectLogController.loadSeverityData(out);
        %>	
    </select><div class="clear"></div>
    
    <span class="label">Priority</span>
    <select size="1" name="cbxPriority">
        <%
            controller.defectLogController.loadPriorityData(out);
        %>	
    </select><div class="clear"></div>
</div>
<div style="width: 45%; float: left; margin-left: 30px;">
    <span class="label">Log Type</span>
    <select size="1" name="cbxLogType">
        <%
            controller.defectLogController.loadLogtypeData(out);
        %>	
    </select><div class="clear"></div>
    
    <span class="label">Defected By</span>
    <select size="1" name="cbxDefectBy">
        <%
            controller.defectLogController.loadEmployeeData(out);
        %>	
    </select><div class="clear"></div>
    
    <span class="label">Assigned To</span>
    <select size="1" name="cbxAssignTo">
        <%
            controller.defectLogController.loadEmployeeData(out);
        %>	
    </select><div class="clear"></div>
    
    <span class="label">Deadline</span>
    <select name="txtDeadline_date" style="width: 50px;"><% util.StringDate.insertDateBoxValue(out);%></select>
    <select name="txtDeadline_month" style="width: 50px;"><% util.StringDate.insertMonthBoxValue(out);%></select>
    <select name="txtDeadline_year" style="width: 100px;"><% util.StringDate.insertYearBoxValue(out); %></select>
    <div class="clear"></div>
    
    <span class="label">Corrective Action</span>
    <textarea wrap="OFF" name="txtCorrective" style="width: 270px;"></textarea><div class="clear"></div>
    
    <span class="label">Fixed By</span>
    <select size="1" name="cbxFixedBy">
        <%
            controller.defectLogController.loadEmployeeData(out);
        %>	
    </select><div class="clear"></div>
    
    <span class="label">Fixed Date</span>
    <select name="txtFixedDate_date" style="width: 50px;"><% util.StringDate.insertDateBoxValue(out);%></select>
    <select name="txtFixedDate_month" style="width: 50px;"><% util.StringDate.insertMonthBoxValue(out);%></select>
    <select name="txtFixedDate_year" style="width: 100px;"><% util.StringDate.insertYearBoxValue(out); %></select>
    <div class="clear"></div>
    
    <span class="label">Closed Date</span>
    <select name="txtClosedDate_date" style="width: 50px;"><% util.StringDate.insertDateBoxValue(out);%></select>
    <select name="txtClosedDate_month" style="width: 50px;"><% util.StringDate.insertMonthBoxValue(out);%></select>
    <select name="txtClosedDate_year" style="width: 100px;"><% util.StringDate.insertYearBoxValue(out); %></select>
    <div class="clear"></div>
</div>

<div class="clear"></div>
<br></br>
<a style="margin: 0px auto;" class="button" onclick="doAction(frmIndex,'<%=Constants.DEFECT_LOG_PAGE_NAME%>',
               '<%=Constants.DEFECTLOG_NEW%>','<%=Constants.DEFECTLOG_NEW%>','<%=Constants.INSERT%>')">
    Save
</a>